/*
 * Copyright (c) 馬駿朱 13921877634 2025.
 */

package com.bng8.majunzhu.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.Table;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;
import java.sql.Date;

/**
 * ClassName: majunzhu
 * Package: com.bng8.majunzhu.entity
 * Date: 2025/3/18 13:55
 * Author: 馬駿朱（13921877634）
 * 存货档案
 */

@Data
@Accessors(chain = true)
@Table("inventory")
public class Inventory implements Serializable {

    /**
     * 主键
     */
    @Id
    @Column("invCode")
    private String id;

    /**
     * 存货代码
     */
    @Column("invAddCode")
    private String invAddCode;

    /**
     * 存货名称
     */
    @Column("invName")
    private String invName;

    /**
     * 规格型号
     */
    @Column("invStd")
    private String invStd;

    /**
     * 存货大类编码
     */
    @Column("invCCode")
    private String invCCode;

    /**
     * 是否销售
     */
    @Column("bSale")
    private Boolean bSale;

    /**
     * 是否采购
     */
    @Column("bPurchase")
    private Boolean bPurchase;

    /**
     * 是否自制
     */
    @Column("bSelf")
    private Boolean bSelf;

    /**
     * 是否生产耗用
     */
    @Column("bComsume")
    private Boolean cmsume;

    /**
     * 建档人
     */
    @Column("createPerson")
    private String createPerson;

    /**
     * 建档日期
     */
    @Column("invCreateDatetime")
    private Date invCreateDatetime;

    /**
     * 变更日期
     */
    @Column("modifyDate")
    private Date modifyDate;

    /**
     * 是否删除
     */
    @Column(isLogicDelete = true)
    private Boolean isDelete;

    /**
     * 版本号
     */
    @Column(version = true)
    private Long version;

    @Serial
    private static final long serialVersionUID = -1598053649219227478L;
}
